import { history } from '@@/core/history';
import { ARTICLE_EDIT, ARTICLE_VIEW } from '@/constant/route.const';

export function goEditArticle(id: number) {
  history.push(ARTICLE_EDIT + '?id=' + id);
}

export function goViewArticle() {
  history.push(ARTICLE_VIEW);
}
